package com.wdc.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.wdc.entity.BookEntity;
import com.wdc.mapper.BookMapper;
import com.wdc.mapper.UserMapper;
import com.wdc.service.BookService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * <p>
 * 用户 服务实现类
 * </p>
 *
 * @author wdc
 * @since 2024-06-06
 */
@Service
public class BookServiceImpl extends ServiceImpl<BookMapper, BookEntity> implements BookService {

    /**
     * 登录
     * @param userDto
     * @return
     */
    @Autowired
    private BookMapper bookMapper;


    /**
     * 插入数据
     * @param book
     * @return
     */
    public Boolean insertBook(BookEntity book) {
        return null;
    }

    /**
     * 找所有图书
     * @return
     */
    public List<BookEntity> selectAll() {

        return bookMapper.selectAll();
    }
}
